<div class="row-fluid">
	<?php echo $this->Html->link(__('Back to Index'), array('controller' => 'categories', 'action' => 'index', 'admin' => true), array('class' => 'btn pull-right'))?>
</div>
<?php echo $this->Form->create('Category',array(
	'class' => 'form-horizontal',
	'inputDefaults' => array('label' => false, 'div' => 'controls')
))?>
	<fieldset>
		<div class="control-group">
            <label class="control-label"><strong>Parent</strong></label>
        	<div class="controls">
        		<?php 
        			echo $this->Form->select('parent_id',
        				$parentOptions, 
        				null, 
        				array('escape' => false, 'empty' => array(0 => __('None')))
        			);
        		?>
           	</div>
         </div>
		<div class='control-group'>	
			<label class='control-label' for='title'><strong>Title</strong></label>
			<?php 
				echo $this->Form->input('title',array(
					'id' => 'title', 
					'class' => 'input-medium',
			))?>
		</div>
		<div class='control-group'>	
			<label class='control-label'><strong>Description</strong></label>
				<?php
					echo $tinymce->input('description', array('rows' => 20, 'cols' => 50));
				?>
		</div>
		<div class="form-actions">
            <button class="btn btn-primary" type="submit">Create</button>
            <button class="btn" type="reset">Reset</button>
          </div>
	</fieldset>
<?php echo $this->Form->end();?>
